#ifndef _AT32F4XX_BOARD_H__
#define _AT32F4XX_BOARD_H__

#include "at32f413.h"

#define CONFIG_FLASH_ADDRESS      FLASH_BASE
#define CONFIG_FLASH_PAGE_SIZE    2048

#define CONFIG_IAP_INFO_ADDR      (CONFIG_FLASH_ADDRESS + CONFIG_FLASH_PAGE_SIZE*127)

#define CONFIG_NVM_SIZE  	 	  (CONFIG_FLASH_PAGE_SIZE * 8)
#define CONFIG_NVM0_ADDRESS       (CONFIG_FLASH_ADDRESS + CONFIG_FLASH_PAGE_SIZE * 100)
#define CONFIG_NVM1_ADDRESS       (CONFIG_NVM0_ADDRESS + CONFIG_NVM_SIZE)

/* include your board.h and define CONFIG_BOARD_NAME*/

#endif /* _AT32F4XX_BOARD_H__ */

